package org.optionparser;
/**
 * Exception thrown when an error during parsing occurs.
 * @author Marcel Kikta
 *
 */
public class ParseException extends Exception {
	private String message;
	public static final long serialVersionUID = 1L;
	/**
	 * Type of the exception.
	 */
	public ParseExceptionType type;

	public ParseException(ParseExceptionType type, String message) {
		this.type = type;
		this.message = message;
	}
	/**
	 * Returns error message.
	 */
	public String getMessage() {
		return this.message;
	}
}
